package cn.likole.oj.bean;

import org.nutz.dao.entity.annotation.*;

/**
 * Created by likole on 7/24/18.
 * 用户属性
 */
@Table("user_info")
@TableIndexes({@Index(fields = "familyId",unique = false),@Index(fields = "forceId",unique = false),@Index(fields = "occupition",unique = false)})
public class UserInfo {

    public UserInfo() {
    }

    public UserInfo(int userId) {
        this.userId = userId;
        addProficiencyC=1;
        addProficiencyCp=1;
        addProficiencyJa=1;
        addProficiencyPy=1;
    }

    /**
     * 用户编号
     */
    @Id(auto = false)
    private int userId;

    /**
     * 武器编号
     */
    @Column
    private int weaponId;

    /**
     * 武器名字
     */
    @Column
    private String weaponName;

    /**
     * 防具编号
     */
    @Column
    private int armorId;

    /**
     * 防具名字
     */
    @Column
    private String armorName;

    /**
     * c熟练度
     */
    @Column
    private int proficiencyC;

    /**
     * c++熟练度
     */
    @Column
    private int proficiencyCp;

    /**
     * java熟练度
     */
    @Column
    private int proficiencyJa;

    /**
     * python熟练度
     */
    @Column
    private int proficiencyPy;

    /**
     * c熟练度加成
     */
    @Column
    private int addProficiencyC;

    /**
     * c++熟练度加成
     */
    @Column
    private int addProficiencyCp;

    /**
     * java熟练度加成
     */
    @Column
    private int addProficiencyJa;

    /**
     * python熟练度加成
     */
    @Column
    private int addProficiencyPy;

    /**
     * 自封称号
     */
    @Column
    private String title;

    /**
     * 等级
     */
    @Column
    private int level;

    /**
     * 经验
     */
    @Column
    private int exp;

    /**
     * 家族id
     */
    @Column
    private int familyId;

    /**
     * 是否族长
     */
    @Column
    private boolean isPatriarch;

    /**
     * 势力id
     */
    @Column
    private int forceId;

    /**
     * 职业id
     */
    @Column
    private int occupition;

    /**
     * 职业名称
     */
    @Column
    private int occupitionName;

    /**
     * 金币
     */
    @Column
    private int money;

    /**
     * 背包容量
     */
    @Column
    private int bagCapacity;

    /**
     * 装备碎片个数
     */
    @Column
    private int fragment;

    public int getFragment() {
        return fragment;
    }

    public void setFragment(int fragment) {
        this.fragment = fragment;
    }

    public int getOccupitionName() {
        return occupitionName;
    }

    public void setOccupitionName(int occupitionName) {
        this.occupitionName = occupitionName;
    }

    public int getBagCapacity() {
        return bagCapacity;
    }

    public void setBagCapacity(int bagCapacity) {
        this.bagCapacity = bagCapacity;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getWeaponId() {
        return weaponId;
    }

    public void setWeaponId(int weaponId) {
        this.weaponId = weaponId;
    }

    public int getArmorId() {
        return armorId;
    }

    public String getWeaponName() {
        return weaponName;
    }

    public void setWeaponName(String weaponName) {
        this.weaponName = weaponName;
    }

    public String getArmorName() {
        return armorName;
    }

    public void setArmorName(String armorName) {
        this.armorName = armorName;
    }

    public void setArmorId(int armorId) {
        this.armorId = armorId;
    }

    public int getProficiencyC() {
        return proficiencyC;
    }

    public void setProficiencyC(int proficiencyC) {
        this.proficiencyC = proficiencyC;
    }

    public int getProficiencyCp() {
        return proficiencyCp;
    }

    public void setProficiencyCp(int proficiencyCp) {
        this.proficiencyCp = proficiencyCp;
    }

    public int getProficiencyJa() {
        return proficiencyJa;
    }

    public void setProficiencyJa(int proficiencyJa) {
        this.proficiencyJa = proficiencyJa;
    }

    public int getProficiencyPy() {
        return proficiencyPy;
    }

    public void setProficiencyPy(int proficiencyPy) {
        this.proficiencyPy = proficiencyPy;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getExp() {
        return exp;
    }

    public void setExp(int exp) {
        this.exp = exp;
    }

    public int getFamilyId() {
        return familyId;
    }

    public void setFamilyId(int familyId) {
        this.familyId = familyId;
    }

    public boolean isPatriarch() {
        return isPatriarch;
    }

    public void setPatriarch(boolean patriarch) {
        isPatriarch = patriarch;
    }

    public int getForceId() {
        return forceId;
    }

    public void setForceId(int forceId) {
        this.forceId = forceId;
    }

    public int getOccupition() {
        return occupition;
    }

    public void setOccupition(int occupition) {
        this.occupition = occupition;
    }

    public int getAddProficiencyC() {
        return addProficiencyC;
    }

    public void setAddProficiencyC(int addProficiencyC) {
        this.addProficiencyC = addProficiencyC;
    }

    public int getAddProficiencyCp() {
        return addProficiencyCp;
    }

    public void setAddProficiencyCp(int addProficiencyCp) {
        this.addProficiencyCp = addProficiencyCp;
    }

    public int getAddProficiencyJa() {
        return addProficiencyJa;
    }

    public void setAddProficiencyJa(int addProficiencyJa) {
        this.addProficiencyJa = addProficiencyJa;
    }

    public int getAddProficiencyPy() {
        return addProficiencyPy;
    }

    public void setAddProficiencyPy(int addProficiencyPy) {
        this.addProficiencyPy = addProficiencyPy;
    }
}